package day1224;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        int ranN1=  (int)(Math.random()*100);
        int userN2=  -ranN1 ;
        while(ranN1 != userN2){ // [0.0*100,  1.0*100)
            userN2= new Scanner(System.in).nextInt();
            if(userN2>ranN1){
                System.out.println("猜大了");
            }else if(userN2<ranN1){
                System.out.println("猜小了");
            }else{
                System.out.println("恭喜你，猜对了");
            }
        }
    }


}



/*
int ranN1=  (int)(Math.random()*100);
        while(1<2){ // [0.0*100,  1.0*100)
            int userN2= new Scanner(System.in).nextInt();
            if(userN2>ranN1){
                System.out.println("猜大了");
            }else if(userN2<ranN1){
                System.out.println("猜小了");
            }else{
                System.out.println("猜对了");
                break;
            }
        }
 */